package com.sun.mybatisplus.bean.enums;

public enum ModelConfigTypeEnum {
    assignBudgetPlan("1"),
    assignBudget("2"),
    personRange("3");

    private String code;

    ModelConfigTypeEnum(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public static ModelConfigTypeEnum getCode(String code){
        for (ModelConfigTypeEnum anEnum : ModelConfigTypeEnum.values()) {
            if (code.equals(anEnum.getCode())){
                return anEnum;
            }
        }
        return null;
    }
}
